package router

import (
	"Demo_GoFrame/src/app/loveBird/api"
	"Demo_GoFrame/src/common/configLoad"
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
)

func InitRouter(selfProject configLoad.ProjectInfo) *ghttp.Server {
	server := g.Server(selfProject.Port)
	server.Group("/"+selfProject.PrefixPath, func(group *ghttp.RouterGroup) {
		_api := new(api.LoveBirdApi)

		group.ALL("getTitle", _api.GetTitle)
	})
	return server
}
